package com.dongdongshop.service;

import com.dongdongshop.data.Page;
import com.dongdongshop.pojo.TbGoods;
import com.dongdongshop.pojo.TbGoodsDesc;
import com.dongdongshop.pojo.TbItem;

import java.util.List;

public interface GoodsService {
    void insertInfo(TbGoods goods, TbGoodsDesc goodsDesc, TbItem tbItem);

    Page<TbGoods> getInfo(TbGoods tbGoods, Integer pageNum, Integer pageSize);

    void updateInfo(Long[] id,String auditStatus);

    void deleteInfo(Long[] id);

    TbGoods findGoodsById(Long goodsId);

    TbGoodsDesc findGoodsDescById(Long goodsId);

    List<TbItem> selectByGoodsId(Long goodsId);
}
